package com.tensquare.base.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Mr.Liu
 * @Description:
 * @Date: Created in 19:52 2020/5/29
 */
@RefreshScope
@RestController
public class TestController {

    private String ip;
    @RequestMapping(value = "/ip",method = RequestMethod.GET)
    public String ip(){
        return ip;
    }
}
